package vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.navigator;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.jface.viewers.ITreePathLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.TreePath;
import org.eclipse.jface.viewers.ViewerLabel;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.navigator.ICommonContentExtensionSite;
import org.eclipse.ui.navigator.ICommonLabelProvider;

import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.PresentationContainerRelationship;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.PresentationSystem;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.UIContainerRelationship;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.AbstractPresentationEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.AbstractPresentationNameEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.AbstractUIComponent2EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.AbstractUIComponentEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.AbstractUIComponentName2EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.AbstractUIComponentNameEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.ActivatorEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.ActivatorNameEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.CommandDestinationsEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.InputFieldEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.InputFieldNameEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.MultipleChoiceEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.MultipleChoiceNameEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.NavigatorEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.NavigatorNameEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.OutputFieldEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.OutputFieldNameEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationContainerRelationshipEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationSystemEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationship10EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationship11EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationship2EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationship3EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationship4EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationship5EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationship6EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationship7EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationship8EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationship9EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipLabel10EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipLabel11EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipLabel2EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipLabel3EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipLabel4EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipLabel5EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipLabel6EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipLabel7EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipLabel8EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipLabel9EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationTemporalRelationshipLabelEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationUnitEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.PresentationUnitNameEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.SingleChoiceEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.SingleChoiceNameEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UIContainerRelationshipEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationship10EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationship11EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationship2EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationship3EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationship4EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationship5EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationship6EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationship7EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationship8EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationship9EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipLabel10EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipLabel11EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipLabel2EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipLabel3EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipLabel4EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipLabel5EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipLabel6EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipLabel7EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipLabel8EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipLabel9EditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.edit.parts.UITemporalRelationshipLabelEditPart;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.part.AdaptedauiDiagramEditorPlugin;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.part.AdaptedauiVisualIDRegistry;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.providers.AdaptedauiElementTypes;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.providers.AdaptedauiParserProvider;

/**
 * @generated
 */
public class AdaptedauiNavigatorLabelProvider extends LabelProvider implements
		ICommonLabelProvider, ITreePathLabelProvider {

	/**
	 * @generated
	 */
	static {
		AdaptedauiDiagramEditorPlugin
				.getInstance()
				.getImageRegistry()
				.put("Navigator?UnknownElement", ImageDescriptor.getMissingImageDescriptor()); //$NON-NLS-1$
		AdaptedauiDiagramEditorPlugin
				.getInstance()
				.getImageRegistry()
				.put("Navigator?ImageNotFound", ImageDescriptor.getMissingImageDescriptor()); //$NON-NLS-1$
	}

	/**
	 * @generated
	 */
	public void updateLabel(ViewerLabel label, TreePath elementPath) {
		Object element = elementPath.getLastSegment();
		if (element instanceof AdaptedauiNavigatorItem
				&& !isOwnView(((AdaptedauiNavigatorItem) element).getView())) {
			return;
		}
		label.setText(getText(element));
		label.setImage(getImage(element));
	}

	/**
	 * @generated
	 */
	public Image getImage(Object element) {
		if (element instanceof AdaptedauiNavigatorGroup) {
			AdaptedauiNavigatorGroup group = (AdaptedauiNavigatorGroup) element;
			return AdaptedauiDiagramEditorPlugin.getInstance().getBundledImage(
					group.getIcon());
		}

		if (element instanceof AdaptedauiNavigatorItem) {
			AdaptedauiNavigatorItem navigatorItem = (AdaptedauiNavigatorItem) element;
			if (!isOwnView(navigatorItem.getView())) {
				return super.getImage(element);
			}
			return getImage(navigatorItem.getView());
		}

		// Due to plugin.xml content will be called only for "own" views
		if (element instanceof IAdaptable) {
			View view = (View) ((IAdaptable) element).getAdapter(View.class);
			if (view != null && isOwnView(view)) {
				return getImage(view);
			}
		}

		return super.getImage(element);
	}

	/**
	 * @generated
	 */
	public Image getImage(View view) {
		switch (AdaptedauiVisualIDRegistry.getVisualID(view)) {
		case PresentationTemporalRelationship3EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationTemporalRelationship", AdaptedauiElementTypes.PresentationTemporalRelationship_4017); //$NON-NLS-1$
		case CommandDestinationsEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?Command?destinations", AdaptedauiElementTypes.CommandDestinations_4014); //$NON-NLS-1$
		case SingleChoiceEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?SingleChoice", AdaptedauiElementTypes.SingleChoice_3006); //$NON-NLS-1$
		case PresentationTemporalRelationship7EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationTemporalRelationship", AdaptedauiElementTypes.PresentationTemporalRelationship_4021); //$NON-NLS-1$
		case MultipleChoiceEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?MultipleChoice", AdaptedauiElementTypes.MultipleChoice_3002); //$NON-NLS-1$
		case AbstractPresentationEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?AbstractPresentation", AdaptedauiElementTypes.AbstractPresentation_2002); //$NON-NLS-1$
		case PresentationUnitEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationUnit", AdaptedauiElementTypes.PresentationUnit_2001); //$NON-NLS-1$
		case InputFieldEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?InputField", AdaptedauiElementTypes.InputField_3003); //$NON-NLS-1$
		case UITemporalRelationship7EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UITemporalRelationship", AdaptedauiElementTypes.UITemporalRelationship_4007); //$NON-NLS-1$
		case UITemporalRelationshipEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UITemporalRelationship", AdaptedauiElementTypes.UITemporalRelationship_4001); //$NON-NLS-1$
		case UITemporalRelationship9EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UITemporalRelationship", AdaptedauiElementTypes.UITemporalRelationship_4009); //$NON-NLS-1$
		case PresentationTemporalRelationship5EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationTemporalRelationship", AdaptedauiElementTypes.PresentationTemporalRelationship_4019); //$NON-NLS-1$
		case UITemporalRelationship6EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UITemporalRelationship", AdaptedauiElementTypes.UITemporalRelationship_4006); //$NON-NLS-1$
		case PresentationTemporalRelationship2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationTemporalRelationship", AdaptedauiElementTypes.PresentationTemporalRelationship_4016); //$NON-NLS-1$
		case NavigatorEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?Navigator", AdaptedauiElementTypes.Navigator_3005); //$NON-NLS-1$
		case PresentationTemporalRelationship8EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationTemporalRelationship", AdaptedauiElementTypes.PresentationTemporalRelationship_4022); //$NON-NLS-1$
		case PresentationTemporalRelationship6EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationTemporalRelationship", AdaptedauiElementTypes.PresentationTemporalRelationship_4020); //$NON-NLS-1$
		case PresentationTemporalRelationship10EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationTemporalRelationship", AdaptedauiElementTypes.PresentationTemporalRelationship_4024); //$NON-NLS-1$
		case UITemporalRelationship10EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UITemporalRelationship", AdaptedauiElementTypes.UITemporalRelationship_4010); //$NON-NLS-1$
		case UITemporalRelationship11EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UITemporalRelationship", AdaptedauiElementTypes.UITemporalRelationship_4011); //$NON-NLS-1$
		case PresentationTemporalRelationship4EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationTemporalRelationship", AdaptedauiElementTypes.PresentationTemporalRelationship_4018); //$NON-NLS-1$
		case ActivatorEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?Activator", AdaptedauiElementTypes.Activator_3007); //$NON-NLS-1$
		case AbstractUIComponentEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?AbstractUIComponent", AdaptedauiElementTypes.AbstractUIComponent_3001); //$NON-NLS-1$
		case UIContainerRelationshipEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UIContainerRelationship", AdaptedauiElementTypes.UIContainerRelationship_4012); //$NON-NLS-1$
		case UITemporalRelationship5EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UITemporalRelationship", AdaptedauiElementTypes.UITemporalRelationship_4005); //$NON-NLS-1$
		case PresentationTemporalRelationship9EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationTemporalRelationship", AdaptedauiElementTypes.PresentationTemporalRelationship_4023); //$NON-NLS-1$
		case PresentationContainerRelationshipEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationContainerRelationship", AdaptedauiElementTypes.PresentationContainerRelationship_4013); //$NON-NLS-1$
		case UITemporalRelationship4EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UITemporalRelationship", AdaptedauiElementTypes.UITemporalRelationship_4004); //$NON-NLS-1$
		case PresentationTemporalRelationship11EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationTemporalRelationship", AdaptedauiElementTypes.PresentationTemporalRelationship_4025); //$NON-NLS-1$
		case OutputFieldEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?OutputField", AdaptedauiElementTypes.OutputField_3004); //$NON-NLS-1$
		case UITemporalRelationship2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UITemporalRelationship", AdaptedauiElementTypes.UITemporalRelationship_4002); //$NON-NLS-1$
		case UITemporalRelationship3EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UITemporalRelationship", AdaptedauiElementTypes.UITemporalRelationship_4003); //$NON-NLS-1$
		case UITemporalRelationship8EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?UITemporalRelationship", AdaptedauiElementTypes.UITemporalRelationship_4008); //$NON-NLS-1$
		case PresentationTemporalRelationshipEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationTemporalRelationship", AdaptedauiElementTypes.PresentationTemporalRelationship_4015); //$NON-NLS-1$
		case PresentationSystemEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Diagram?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?PresentationSystem", AdaptedauiElementTypes.PresentationSystem_1000); //$NON-NLS-1$
		case AbstractUIComponent2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.fit.hcmus.edu.vn/se/mdd/mbuid/adaptedaui?AbstractUIComponent", AdaptedauiElementTypes.AbstractUIComponent_3009); //$NON-NLS-1$
		}
		return getImage("Navigator?UnknownElement", null); //$NON-NLS-1$
	}

	/**
	 * @generated
	 */
	private Image getImage(String key, IElementType elementType) {
		ImageRegistry imageRegistry = AdaptedauiDiagramEditorPlugin
				.getInstance().getImageRegistry();
		Image image = imageRegistry.get(key);
		if (image == null && elementType != null
				&& AdaptedauiElementTypes.isKnownElementType(elementType)) {
			image = AdaptedauiElementTypes.getImage(elementType);
			imageRegistry.put(key, image);
		}

		if (image == null) {
			image = imageRegistry.get("Navigator?ImageNotFound"); //$NON-NLS-1$
			imageRegistry.put(key, image);
		}
		return image;
	}

	/**
	 * @generated
	 */
	public String getText(Object element) {
		if (element instanceof AdaptedauiNavigatorGroup) {
			AdaptedauiNavigatorGroup group = (AdaptedauiNavigatorGroup) element;
			return group.getGroupName();
		}

		if (element instanceof AdaptedauiNavigatorItem) {
			AdaptedauiNavigatorItem navigatorItem = (AdaptedauiNavigatorItem) element;
			if (!isOwnView(navigatorItem.getView())) {
				return null;
			}
			return getText(navigatorItem.getView());
		}

		// Due to plugin.xml content will be called only for "own" views
		if (element instanceof IAdaptable) {
			View view = (View) ((IAdaptable) element).getAdapter(View.class);
			if (view != null && isOwnView(view)) {
				return getText(view);
			}
		}

		return super.getText(element);
	}

	/**
	 * @generated
	 */
	public String getText(View view) {
		if (view.getElement() != null && view.getElement().eIsProxy()) {
			return getUnresolvedDomainElementProxyText(view);
		}
		switch (AdaptedauiVisualIDRegistry.getVisualID(view)) {
		case PresentationTemporalRelationship3EditPart.VISUAL_ID:
			return getPresentationTemporalRelationship_4017Text(view);
		case CommandDestinationsEditPart.VISUAL_ID:
			return getCommandDestinations_4014Text(view);
		case SingleChoiceEditPart.VISUAL_ID:
			return getSingleChoice_3006Text(view);
		case PresentationTemporalRelationship7EditPart.VISUAL_ID:
			return getPresentationTemporalRelationship_4021Text(view);
		case MultipleChoiceEditPart.VISUAL_ID:
			return getMultipleChoice_3002Text(view);
		case AbstractPresentationEditPart.VISUAL_ID:
			return getAbstractPresentation_2002Text(view);
		case PresentationUnitEditPart.VISUAL_ID:
			return getPresentationUnit_2001Text(view);
		case InputFieldEditPart.VISUAL_ID:
			return getInputField_3003Text(view);
		case UITemporalRelationship7EditPart.VISUAL_ID:
			return getUITemporalRelationship_4007Text(view);
		case UITemporalRelationshipEditPart.VISUAL_ID:
			return getUITemporalRelationship_4001Text(view);
		case UITemporalRelationship9EditPart.VISUAL_ID:
			return getUITemporalRelationship_4009Text(view);
		case PresentationTemporalRelationship5EditPart.VISUAL_ID:
			return getPresentationTemporalRelationship_4019Text(view);
		case UITemporalRelationship6EditPart.VISUAL_ID:
			return getUITemporalRelationship_4006Text(view);
		case PresentationTemporalRelationship2EditPart.VISUAL_ID:
			return getPresentationTemporalRelationship_4016Text(view);
		case NavigatorEditPart.VISUAL_ID:
			return getNavigator_3005Text(view);
		case PresentationTemporalRelationship8EditPart.VISUAL_ID:
			return getPresentationTemporalRelationship_4022Text(view);
		case PresentationTemporalRelationship6EditPart.VISUAL_ID:
			return getPresentationTemporalRelationship_4020Text(view);
		case PresentationTemporalRelationship10EditPart.VISUAL_ID:
			return getPresentationTemporalRelationship_4024Text(view);
		case UITemporalRelationship10EditPart.VISUAL_ID:
			return getUITemporalRelationship_4010Text(view);
		case UITemporalRelationship11EditPart.VISUAL_ID:
			return getUITemporalRelationship_4011Text(view);
		case PresentationTemporalRelationship4EditPart.VISUAL_ID:
			return getPresentationTemporalRelationship_4018Text(view);
		case ActivatorEditPart.VISUAL_ID:
			return getActivator_3007Text(view);
		case AbstractUIComponentEditPart.VISUAL_ID:
			return getAbstractUIComponent_3001Text(view);
		case UIContainerRelationshipEditPart.VISUAL_ID:
			return getUIContainerRelationship_4012Text(view);
		case UITemporalRelationship5EditPart.VISUAL_ID:
			return getUITemporalRelationship_4005Text(view);
		case PresentationTemporalRelationship9EditPart.VISUAL_ID:
			return getPresentationTemporalRelationship_4023Text(view);
		case PresentationContainerRelationshipEditPart.VISUAL_ID:
			return getPresentationContainerRelationship_4013Text(view);
		case UITemporalRelationship4EditPart.VISUAL_ID:
			return getUITemporalRelationship_4004Text(view);
		case PresentationTemporalRelationship11EditPart.VISUAL_ID:
			return getPresentationTemporalRelationship_4025Text(view);
		case OutputFieldEditPart.VISUAL_ID:
			return getOutputField_3004Text(view);
		case UITemporalRelationship2EditPart.VISUAL_ID:
			return getUITemporalRelationship_4002Text(view);
		case UITemporalRelationship3EditPart.VISUAL_ID:
			return getUITemporalRelationship_4003Text(view);
		case UITemporalRelationship8EditPart.VISUAL_ID:
			return getUITemporalRelationship_4008Text(view);
		case PresentationTemporalRelationshipEditPart.VISUAL_ID:
			return getPresentationTemporalRelationship_4015Text(view);
		case PresentationSystemEditPart.VISUAL_ID:
			return getPresentationSystem_1000Text(view);
		case AbstractUIComponent2EditPart.VISUAL_ID:
			return getAbstractUIComponent_3009Text(view);
		}
		return getUnknownElementText(view);
	}

	/**
	 * @generated
	 */
	private String getPresentationTemporalRelationship_4017Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.PresentationTemporalRelationship_4017,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(PresentationTemporalRelationshipLabel3EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6014); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getCommandDestinations_4014Text(View view) {
		return ""; //$NON-NLS-1$
	}

	/**
	 * @generated
	 */
	private String getSingleChoice_3006Text(View view) {
		IParser parser = AdaptedauiParserProvider.getParser(
				AdaptedauiElementTypes.SingleChoice_3006,
				view.getElement() != null ? view.getElement() : view,
				AdaptedauiVisualIDRegistry
						.getType(SingleChoiceNameEditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 5006); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationTemporalRelationship_4021Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.PresentationTemporalRelationship_4021,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(PresentationTemporalRelationshipLabel7EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6018); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getMultipleChoice_3002Text(View view) {
		IParser parser = AdaptedauiParserProvider.getParser(
				AdaptedauiElementTypes.MultipleChoice_3002,
				view.getElement() != null ? view.getElement() : view,
				AdaptedauiVisualIDRegistry
						.getType(MultipleChoiceNameEditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 5002); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getAbstractPresentation_2002Text(View view) {
		IParser parser = AdaptedauiParserProvider.getParser(
				AdaptedauiElementTypes.AbstractPresentation_2002, view
						.getElement() != null ? view.getElement() : view,
				AdaptedauiVisualIDRegistry
						.getType(AbstractPresentationNameEditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 5010); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationUnit_2001Text(View view) {
		IParser parser = AdaptedauiParserProvider.getParser(
				AdaptedauiElementTypes.PresentationUnit_2001,
				view.getElement() != null ? view.getElement() : view,
				AdaptedauiVisualIDRegistry
						.getType(PresentationUnitNameEditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 5008); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getInputField_3003Text(View view) {
		IParser parser = AdaptedauiParserProvider.getParser(
				AdaptedauiElementTypes.InputField_3003,
				view.getElement() != null ? view.getElement() : view,
				AdaptedauiVisualIDRegistry
						.getType(InputFieldNameEditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 5003); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUITemporalRelationship_4007Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.UITemporalRelationship_4007,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(UITemporalRelationshipLabel7EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6007); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUITemporalRelationship_4001Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.UITemporalRelationship_4001,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(UITemporalRelationshipLabelEditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6001); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUITemporalRelationship_4009Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.UITemporalRelationship_4009,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(UITemporalRelationshipLabel9EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6009); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationTemporalRelationship_4019Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.PresentationTemporalRelationship_4019,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(PresentationTemporalRelationshipLabel5EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6016); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUITemporalRelationship_4006Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.UITemporalRelationship_4006,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(UITemporalRelationshipLabel6EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6006); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationTemporalRelationship_4016Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.PresentationTemporalRelationship_4016,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(PresentationTemporalRelationshipLabel2EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6013); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getNavigator_3005Text(View view) {
		IParser parser = AdaptedauiParserProvider.getParser(
				AdaptedauiElementTypes.Navigator_3005,
				view.getElement() != null ? view.getElement() : view,
				AdaptedauiVisualIDRegistry
						.getType(NavigatorNameEditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 5005); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationTemporalRelationship_4022Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.PresentationTemporalRelationship_4022,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(PresentationTemporalRelationshipLabel8EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6019); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationTemporalRelationship_4020Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.PresentationTemporalRelationship_4020,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(PresentationTemporalRelationshipLabel6EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6017); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationTemporalRelationship_4024Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.PresentationTemporalRelationship_4024,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(PresentationTemporalRelationshipLabel10EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6021); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUITemporalRelationship_4010Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.UITemporalRelationship_4010,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(UITemporalRelationshipLabel10EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6010); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUITemporalRelationship_4011Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.UITemporalRelationship_4011,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(UITemporalRelationshipLabel11EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6011); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationTemporalRelationship_4018Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.PresentationTemporalRelationship_4018,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(PresentationTemporalRelationshipLabel4EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6015); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getActivator_3007Text(View view) {
		IParser parser = AdaptedauiParserProvider.getParser(
				AdaptedauiElementTypes.Activator_3007,
				view.getElement() != null ? view.getElement() : view,
				AdaptedauiVisualIDRegistry
						.getType(ActivatorNameEditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 5007); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getAbstractUIComponent_3001Text(View view) {
		IParser parser = AdaptedauiParserProvider.getParser(
				AdaptedauiElementTypes.AbstractUIComponent_3001, view
						.getElement() != null ? view.getElement() : view,
				AdaptedauiVisualIDRegistry
						.getType(AbstractUIComponentNameEditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 5001); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUIContainerRelationship_4012Text(View view) {
		UIContainerRelationship domainModelElement = (UIContainerRelationship) view
				.getElement();
		if (domainModelElement != null) {
			return domainModelElement.getLabel();
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"No domain element for view with visualID = " + 4012); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUITemporalRelationship_4005Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.UITemporalRelationship_4005,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(UITemporalRelationshipLabel5EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6005); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationTemporalRelationship_4023Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.PresentationTemporalRelationship_4023,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(PresentationTemporalRelationshipLabel9EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6020); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationContainerRelationship_4013Text(View view) {
		PresentationContainerRelationship domainModelElement = (PresentationContainerRelationship) view
				.getElement();
		if (domainModelElement != null) {
			return domainModelElement.getLabel();
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"No domain element for view with visualID = " + 4013); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUITemporalRelationship_4004Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.UITemporalRelationship_4004,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(UITemporalRelationshipLabel4EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6004); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationTemporalRelationship_4025Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.PresentationTemporalRelationship_4025,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(PresentationTemporalRelationshipLabel11EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6022); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getOutputField_3004Text(View view) {
		IParser parser = AdaptedauiParserProvider.getParser(
				AdaptedauiElementTypes.OutputField_3004,
				view.getElement() != null ? view.getElement() : view,
				AdaptedauiVisualIDRegistry
						.getType(OutputFieldNameEditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 5004); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUITemporalRelationship_4002Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.UITemporalRelationship_4002,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(UITemporalRelationshipLabel2EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6002); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUITemporalRelationship_4003Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.UITemporalRelationship_4003,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(UITemporalRelationshipLabel3EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6003); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUITemporalRelationship_4008Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.UITemporalRelationship_4008,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(UITemporalRelationshipLabel8EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6008); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationTemporalRelationship_4015Text(View view) {
		IParser parser = AdaptedauiParserProvider
				.getParser(
						AdaptedauiElementTypes.PresentationTemporalRelationship_4015,
						view.getElement() != null ? view.getElement() : view,
						AdaptedauiVisualIDRegistry
								.getType(PresentationTemporalRelationshipLabelEditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 6012); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getPresentationSystem_1000Text(View view) {
		PresentationSystem domainModelElement = (PresentationSystem) view
				.getElement();
		if (domainModelElement != null) {
			return domainModelElement.getName();
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"No domain element for view with visualID = " + 1000); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getAbstractUIComponent_3009Text(View view) {
		IParser parser = AdaptedauiParserProvider.getParser(
				AdaptedauiElementTypes.AbstractUIComponent_3009, view
						.getElement() != null ? view.getElement() : view,
				AdaptedauiVisualIDRegistry
						.getType(AbstractUIComponentName2EditPart.VISUAL_ID));
		if (parser != null) {
			return parser.getPrintString(new EObjectAdapter(
					view.getElement() != null ? view.getElement() : view),
					ParserOptions.NONE.intValue());
		} else {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 5011); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getUnknownElementText(View view) {
		return "<UnknownElement Visual_ID = " + view.getType() + ">"; //$NON-NLS-1$  //$NON-NLS-2$
	}

	/**
	 * @generated
	 */
	private String getUnresolvedDomainElementProxyText(View view) {
		return "<Unresolved domain element Visual_ID = " + view.getType() + ">"; //$NON-NLS-1$  //$NON-NLS-2$
	}

	/**
	 * @generated
	 */
	public void init(ICommonContentExtensionSite aConfig) {
	}

	/**
	 * @generated
	 */
	public void restoreState(IMemento aMemento) {
	}

	/**
	 * @generated
	 */
	public void saveState(IMemento aMemento) {
	}

	/**
	 * @generated
	 */
	public String getDescription(Object anElement) {
		return null;
	}

	/**
	 * @generated
	 */
	private boolean isOwnView(View view) {
		return PresentationSystemEditPart.MODEL_ID
				.equals(AdaptedauiVisualIDRegistry.getModelID(view));
	}

}
